Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURA-12091 fix infill plugin start crash #19599

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wawanbreton
Copy link
Contributor

@wawanbreton wawanbreton commented Aug 30, 2024

When starting an engine plugin executable from within an AppImage, the AppImage hooks make some black magic to make sure the called executable is started from the OS environment. In our case this is not what we want, as the plugin is supposed to use the environment provided with the AppImage, which is compatible with more platforms.

This PR adds an environment variable before starting the engine plugin executable, to tell AppImage to consider the executable as if it was part of its environment.

This can also be achieved by starting cura with e.g. APPDIR_MODULE_DIR=$HOME/.local/share/cura/5.8/plugins/CuraEngineTiledInfill/CuraEngineTiledInfill/x86_64/Linux ./UltiMaker-Cura-5.8.0-linux-X64.AppImage. Thus, one can use the Infil plugin version 2.0.1 with Cura 5.8.0 on platforms where it would not run (e.g. Mint 20). In 5.9.0 it will work out of the box.

Requires Ultimaker/CuraEngine_plugin_infill_generate#19 (Or Infill plugin package 2.0.1)

May fix #17441
Fixes #17551
Fixes #17739
Fixes #18530
Should fix #19501 (changed build runner)

CURA-12091

@wawanbreton wawanbreton marked this pull request as ready for review September 3, 2024 06:49
Copy link
Member

@rburema rburema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants